package com.funong.matrix.biz.massage.facade.impl;

import com.funong.matrix.biz.base.entity.SysInmailEntity;
import com.funong.matrix.biz.base.entity.SysSendTaskEntity;
import com.funong.matrix.biz.massage.domain.SysInmailDomainDao;
import com.funong.matrix.biz.massage.facade.SysInmailFacade;
import com.funong.matrix.core.dto.QueryDTO;
import com.funong.matrix.core.dto.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : NaNa
 * @since : 2023-05-19 17:01
 **/
@Slf4j
@Service
public class SysInmailFacadeImpl implements SysInmailFacade {

    @Resource
    private SysInmailDomainDao inmailDao;

    @Override
    public void saveMessageEntity(SysSendTaskEntity sendTaskEntity){
        inmailDao.saveMessageEntity(sendTaskEntity);
    }

    @Override
    public Result queryInmail(QueryDTO<SysInmailEntity> queryDTO) {
        return inmailDao.queryInmail(queryDTO);
    }

    @Override
    public Result readInmail(List<Integer> idList) {
        return inmailDao.readInmail(idList);
    }

    @Override
    public void sendInMailMessage(String permissionCode, String title, String content) {
        inmailDao.sendInMailMessage(permissionCode, title, content);
    }
}
